package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 游客礼物
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_visitor_present")
public class VisitorPresent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 授权类型  1小程序  2h5
     */
    private Boolean authType;

    /**
     * openid
     */
    private String openid;

    /**
     * 联合ID
     */
    private String unionId;

    /**
     * 微信昵称
     */
    private String nickname;

    /**
     * 礼物ID
     */
    private Long presentId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 礼物制作人ID
     */
    private Long producerId;

    /**
     * 是否确认收下 0否 1是
     */
    private Boolean isCheck;

    /**
     * 是否系统赠送，0：否；1：是
     */
    private Boolean isSystem;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Boolean getAuthType() {
        return authType;
    }

    public void setAuthType(Boolean authType) {
        this.authType = authType;
    }
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }
    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public Long getPresentId() {
        return presentId;
    }

    public void setPresentId(Long presentId) {
        this.presentId = presentId;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getProducerId() {
        return producerId;
    }

    public void setProducerId(Long producerId) {
        this.producerId = producerId;
    }
    public Boolean getCheck() {
        return isCheck;
    }

    public void setCheck(Boolean isCheck) {
        this.isCheck = isCheck;
    }
    public Boolean getSystem() {
        return isSystem;
    }

    public void setSystem(Boolean isSystem) {
        this.isSystem = isSystem;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "VisitorPresent{" +
            "id=" + id +
            ", authType=" + authType +
            ", openid=" + openid +
            ", unionId=" + unionId +
            ", nickname=" + nickname +
            ", presentId=" + presentId +
            ", userId=" + userId +
            ", producerId=" + producerId +
            ", isCheck=" + isCheck +
            ", isSystem=" + isSystem +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
